Skip to content

test FlowInitialized event payload per config#447

Open
thedavidmeister wants to merge 2 commits into
mainfrom
2026-05-05-issue-325-flowinitialized-event-test
Open

test FlowInitialized event payload per config#447
thedavidmeister wants to merge 2 commits into
mainfrom
2026-05-05-issue-325-flowinitialized-event-test

Conversation

@thedavidmeister

Copy link
Copy Markdown
Contributor

Summary

Pins three invariants on the FlowInitialized event emitted by flowInit:

  1. One event per evaluable config (count == configs.length).
  2. sender field equals the clone-factory caller.
  3. evaluable field equals the deployer-returned (interpreter, store, expression) triple.

Mutation verified: commenting out the emit FlowInitialized line makes the test fail (event count mismatch); reverting passes.

Closes #325.

Test plan

  • testFlowConstructionEmitsFlowInitializedPerConfig — 100 fuzz runs (1–5 configs)
  • mutation: drop emit FlowInitialized → test fails

🤖 Generated with Claude Code

Pins three invariants on the `FlowInitialized` event emitted by
`flowInit`:

1. One event per evaluable config (count == configs.length).
2. `sender` field equals the clone-factory caller.
3. `evaluable` field equals the deployer-returned (interpreter, store,
   expression) triple.

Mutation verified: commenting out the `emit FlowInitialized` line
makes the test fail (event count mismatch); reverting passes.

Closes #325.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@thedavidmeister, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 3 minutes and 55 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c551714e-7c98-46ae-9603-655e9068f2c4

📥 Commits

Reviewing files that changed from the base of the PR and between ec7a7f7 and 25408d9.

📒 Files selected for processing (1)
  • test/src/concrete/Flow.construction.t.sol
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 2026-05-05-issue-325-flowinitialized-event-test

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@thedavidmeister thedavidmeister self-assigned this May 9, 2026
Resolve import-block conflict in
test/src/concrete/Flow.construction.t.sol as the union of both sides:
keep main's EmptyFlowConfig/InsufficientFlowOutputs/UnsupportedFlowInputs
and MIN_FLOW_SENTINELS imports plus this branch's EvaluableV2 import. All
six FlowConstruction tests pass; forge build is clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@thedavidmeister

Copy link
Copy Markdown
Contributor Author

Reviewed 25408d9: test FlowInitialized event payload per config — rebased onto main (test-only union conflict resolution + forge fmt), all checks green. LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[A01-6] [LOW] FlowInitialized event payload not asserted

1 participant